<div id="dicmodal" class="modal" tabindex="-1" role="dialog">
    <div class="modal-dialog" style="width: 1100px;">
        <div class="card">
            <div class="header">
                <button type="button" class="close" ng-click="$hide()">&times;</button>
                <h3 class="modal-title">{{params.title}}</h3>
            </div>
            <div activate-input activate-select class="body">
                <form class="form-horizontal" role="form" id="gradeform"
                      name="gradeform" ng-submit="submitGrade(gradeform.$valid)" novalidate>
                    <div ng-if="isDetail" class="dj-formtable">
                        <table class="dj-table">
                            <tr>
                                <th>
                                    党组织代码
                                </th>
                                <td>
                                    {{party.dzzdm}}
                                </td>
                                <th>党组织名称</th>
                                <td>
                                    {{party.dzzmc}}
                                </td>
                            </tr>
                            <tr>
                                <th>领导集体届次</th>
                                <td ng-class="{ 'has-error' : this.gradeform.ldjtjc.$invalid &&  this.gradeform.$submitted}">
                                    <input type="number" min="1" max="9999" step="1"
                                           name="ldjtjc" ng-model="gradevm.ldjtjc"
                                           class="form-control" ng-required="true"/>
                                    <span ng-show="this.gradeform.ldjtjc.$invalid &&  this.gradeform.$submitted"
                                          class="error">必填.请输入四位数以内的整数!</span>
                                </td>
                                <th>
                                    上次换届时间
                                </th>
                                <td ng-class="{ 'has-error' : this.gradeform.ldjtdxrq.$invalid &&  this.gradeform.$submitted}">
                                    <input name="ldjtdxrq" ng-model="gradevm.ldjtdxrq" class="form-control"
                                           autocomplete="off"
                                           autoclose="true"
                                           data-date-format="yyyyMMdd" data-date-type="date"
                                           placeholder="" bs-datepicker
                                           ng-required="true"/>
                                    <span ng-show="this.gradeform.ldjtdxrq.$invalid &&  this.gradeform.$submitted"
                                          class="error">必填.</span>
                                </td>

                            </tr>
                            <tr>
                                <th>到期换届时间</th>
                                <td ng-class="{ 'has-error' : this.gradeform.gjjmrq.$invalid &&  this.gradeform.$submitted}">
                                    <input name="gjjmrq" ng-model="gradevm.gjjmrq" class="form-control"
                                           autocomplete="off"
                                           autoclose="true"
                                           data-date-format="yyyyMMdd" data-date-type="date"
                                           placeholder="" bs-datepicker
                                           ng-required="true"/>
                                    <span ng-show="this.gradeform.gjjmrq.$invalid &&  this.gradeform.$submitted"
                                          class="error">必填.</span>
                                </td>
                                <th>
                                    选举方式
                                </th>
                                <td ng-class="{ 'has-error' : this.gradeform.xjfs.$invalid &&  this.gradeform.$submitted}">
                                    <select class="form-control show-tick" name="xjfs" ng-model="gradevm.xjfs"
                                            ng-options="type.bm as type.hzmc for type in xjfsdmList"
                                            class="form-control"
                                            ng-required="true">
                                        <option value="" selected>--请选择--</option>
                                    </select>
                                    <span ng-show="this.gradeform.xjfs.$invalid &&  this.gradeform.$submitted"
                                          class="error">必填.</span>
                                </td>
                            </tr>
                            <tr>
                                <th>委员会人数</th>
                                <td>
                                    <input type="text" name="wyhdy" ng-model="gradevmFb.wyhdy"
                                           class="form-control"/>
                                </td>
                                <td colspan="2"></td>
                            </tr>
                            <!--<tr>-->
                                <!--<th>备注1</th>-->
                                <!--<td>-->
                                    <!--<input type="text" name="yl01" ng-model="gradevm.yl01" maxlength="36"-->
                                           <!--class="form-control"/>-->
                                <!--</td>-->
                                <!--<th>备注2</th>-->
                                <!--<td>-->
                                    <!--<input type="text" name="yl02" ng-model="gradevm.yl02" maxlength="36"-->
                                           <!--class="form-control"/>-->
                                <!--</td>-->
                            <!--</tr>-->
                            <!--<tr>-->
                                <!--<th>备注3</th>-->
                                <!--<td colspan="3">-->
                                    <!--<input type="text" name="yl03" ng-model="gradevm.yl03" maxlength="36"-->
                                           <!--class="form-control"/>-->
                                <!--</td>-->
                            <!--</tr>-->
                        </table>
                    </div>
                    <div ng-if="!isDetail" class="dj-formtable">
                        <table class="dj-table">
                            <tr>
                                <th>
                                    党组织代码
                                </th>
                                <td>
                                    {{party.dzzdm}}
                                </td>
                                <th>党组织名称</th>
                                <td>
                                    {{party.dzzmc}}
                                </td>
                            </tr>
                            <tr>
                                <th>领导集体届次</th>
                                <td>
                                    {{gradevm.ldjtjc}}
                                </td>
                                <th>
                                    上次换届时间
                                </th>
                                <td>
                                    {{gradevm.ldjtdxrq}}
                                </td>

                            </tr>
                            <tr>
                                <th>到期换届时间</th>
                                <td>
                                    {{gradevm.gjjmrq}}
                                </td>
                                <th>
                                    选举方式
                                </th>
                                <td>
                                    {{(xjfsdmList|filter:{bm:gradevm.xjfs})[0].hzmc }}
                                </td>
                            </tr>
                            <tr>
                                <th>委员会定员</th>
                                <td>
                                    {{gradevmFb.wyhdy}}
                                </td>
                                <td colspan="2"></td>
                            </tr>
                            <tr>
                                <th>备注1</th>
                                <td>
                                    {{gradevm.yl01}}
                                </td>
                                <th>备注2</th>
                                <td>
                                    {{gradevm.yl02}}
                                </td>
                            </tr>
                            <tr>
                                <th>备注3</th>
                                <td colspan="3">
                                    {{gradevm.yl03}}
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="form_foot">
                        <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
                        <button type="submit" class="btn btn-primary" form="gradeform" ng-if="isDetail">保存</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>